﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ParkingLot.Entitys.Enums
{
    class PublicEnums
    {
    }

    /// <summary>
    /// 日志类型
    /// </summary>
    public enum LogType
    {
        None = 0x00,

        /// <summary>
        /// 系统运行日志
        /// </summary>
        SysRun = 0x01,

        /// <summary>
        /// 异常和错误
        /// </summary>
        Error = 0x02,

        /// <summary>
        /// 系统初始化日志
        /// </summary>
        Init = 0x04,

        /// <summary>
        /// 系统KeyDown日志
        /// </summary>
        KeyDownLog = 0x08,

        /// <summary>
        /// 系统接口日志
        /// </summary>
        InterfaceLog = 0x10,

        /// <summary>
        /// 算法日志
        /// </summary>
        AlgroLog=0x11,

        /// <summary>
        /// 筛选日志
        /// </summary>
        ChoiceLog=0x12,

        /// <summary>
        /// 推送日志
        /// </summary>
        PublishLog=0x14,
        
        /// <summary>
        /// 不合逻辑的错误(一经发现 肯定是系统异常或者对接的系统异常)
        /// </summary>
        Fabulous=0x18,
    }

    /// <summary>
    /// 自定义异常类型
    /// </summary>
    public enum ExceptionType
    {
        None = 0x00,

        /// <summary>
        /// 错误
        /// </summary>
        Wrong = 0x01,

        /// <summary>
        /// 异常
        /// </summary>
        Exception = 0x02,

        /// <summary>
        /// 数据库会话异常
        /// </summary>
        DbsessionException = 0x04,

        /// <summary>
        /// 业务异常
        /// </summary>
        BusinessException = 0x08,


    }

    /// <summary>
    /// 进程间通讯类型
    /// </summary>

    public enum ProgressCommunication
    {
        None = 0x00,

        /// <summary>
        /// 本客户端内部通信(事件的内核)
        /// </summary>
        InnerCommunication = 0x01,

        /// <summary>
        /// 客户端间通信(例如手机A打手机B 不支持的)
        /// </summary>
        ClientToClient = 0x02,

        /// <summary>
        /// 客户端到服务器通信(手机A联系总部)
        /// </summary>
        ClientToServer = 0x04,

        /// <summary>
        /// 服务端到客户端的通信(例如学校广播 所有同学注意了 你注意不注意是你的事)
        /// </summary>
        ServerToClient = 0x08,
    }

    /// <summary>
    /// UDP
    /// </summary>
    public enum UdpCommunication
    {
        None = 0x00,
        /// <summary>
        /// 单播
        /// </summary>
        UniCast = 0x01,

        /// <summary>
        /// 组播
        /// </summary>
        GroupCast = 0x02,

        /// <summary>
        /// 广播
        /// </summary>
        AirringCast = 0x04,

    }

    public enum DtoStates
    {
        None = 0x00,

        Add = 0x01,

        Update = 0x02,
    }

}
